< previous page page_747 next page >

Page 747
To test this program, you need to display the About form and click the URL. Traditionally, an About box is displayed when the user selects the About menu item. However, for testing purposes, you can put the following statement in the Load event of Form1:
frmAbout.Show
The enhanced About box is shown in Figure 33.3.
0747-01.jpg
Figure 33.3
A properly formatted label
control acts as a "fake" hyperlink.
Programming E-Mail
It seems as though almost everyone these days has an e-mail address. Although e-mail is ideal for the type of personal communications used in regular mail, it has the added benefit of being able to transfer files and other information. For example, a Visual Basic program where I work pulls information from a database, stores it in a spreadsheet, and then sends the spreadsheet to the appropriate people. All of this happens automatically every morning without any human intervention. To perform such automation tasks, you need a method of interacting with e-mail from Visual Basic.
One such method is OLE Messaging (also known as Microsoft Active Messaging and Collaboration Data Objects). OLE Messaging is an object-oriented interface to Windows Messaging. When you install some versions of Microsoft Outlook or Exchange, a file called OLEMSG32.DLL is installed in your Windows System directory.
note.gif The e-mail tools included with Visual Basic are the MAPI controls and the MAPI API. These are still available, but they are not as easy to use as OLE Messaging. square.gif

To use OLE Messaging, you have to add a reference to this DLL by selecting the Active Messaging Object Library on the References dialog box (choose Properties, References) as shown in Figure 33.4.
After adding the reference, press F2 to bring up Visual Basic's Object Browser. You can view all of the objects, properties, and methods included with the reference.

 
< previous page page_747 next page >